<%@ page import="model.UserService" %><%--
  Created by IntelliJ IDEA.
  User: sy189
  Date: 2022/5/11
  Time: 15:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>Title</title>
  </head>
  <body>
<%
  request.setCharacterEncoding("UTF-8");
  String pw = request.getParameter("pw");
  String tel = request.getParameter("tel");
  String addr = request.getParameter("addr");
  String id = request.getParameter("loginID");
  int r = new UserService().updateUser(pw, tel, addr, "2");
  if (r == 1)  out.print("修改成功");
  else out.print("修改失败");
%>
  </body>
</html>
